
function list() {
    $.blockUI({message: "Aguarde un momento por favor"});
    $.ajax({
        url: '/academico/maquinaalumno/myvms',
        type: 'post',
        dataType: 'json',
        success: function(response) {
            // se traen los datos al cargar la pagina
            areaTable = $('#myvms_table').dataTable({
                "sDom": "<'nuevo'> frtip",
                "sPaginationType": "bootstrap",
                "oLanguage": {
                    "sLengthMenu": "_MENU_ records per page"
                },
                "aaData": response,
                "aoColumns": [
                    {
                        "sTitle": ""
                    },
                    {
                        "sTitle": "Info"
                    }
//                    ,
//                    {
//                        "sTitle": "Descripcion"
//                    }
                ],
                "aoColumnDefs": [
                    {"sWidth": "20%", "aTargets": [0]},
                    {"asSorting": [], "aTargets": [0]},
                    {"asSorting": ["asc"], "aTargets": [1]}
                ]
            });
            $.unblockUI();
        },
        error: function(jqXHR, textStatus, errorThrown) {
            $.unblockUI();
            alert("Error");
            console.log(jqXHR);
            console.log(textStatus);
            console.log(errorThrown);
        }
    });
}

$('#test').click(function(event) {
    window.location.href = '/academico/';
});

$(document).ready(function() {
    menuClass('maquinas-alumno');
    list();
});
